package org.dochandler.esfinge.guardian.populator;

import org.dochandler.config.DHConfig;
import org.dochandler.service.domain.SituationOfState;
import org.esfinge.guardian.annotation.config.PopulatorClass;
import org.esfinge.guardian.context.AuthorizationContext;
import org.esfinge.guardian.populator.Populator;

@PopulatorClass(SituationOfStatePopulator.class)
public class SituationOfStatePopulator implements Populator {

	@Override
	public void populate(AuthorizationContext context) {
		String key = DHConfig.getString("situation_of_state");
		context.getEnvironment().put(key, SituationOfState.NORMAL);
	}
}
